<template>
    <div class="Category">
        <h2>{{title}}</h2>
        <slot name="s1">默认内容1</slot>       <!-- 具名插槽 -->
        <slot name="s2">默认内容2</slot>
    </div>
</template>

<script lang="ts" setup name="Category">
    //数据

    //方法

    defineProps(['title'])
</script>

<style scoped>
    .Category{
        background-color: skyblue;
        border-radius: 10px;
        box-shadow: 0 0 10px;
        padding: 10px;
        width: 200px;
        height: 300px;
    }
</style>